package com.lagou.consumer;

import com.lagou.service.MonitorService;
import lombok.extern.log4j.Log4j;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * 监控消费端
 * @author 陶肖寅
 * @version V1.0
 * @Package com.citycloud.consumer
 * @email fromlx@126.com
 * @date 2020-04-17 01:01
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 */
@Service
@Log4j
public class MonitorConsumer{
    @Reference
    MonitorService monitorService;

    public void monitor() throws Exception{
        for(int i=0;i<2000;i++){
            monitorService.methodA();
            monitorService.methodB();
            monitorService.methodC();
        }
    }


}
